package com.loto.insurance.mis.web.db.mapper;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.loto.insurance.mis.web.entity.ProductInfo;

public interface ProductInfoMapper {

  ArrayList<ProductInfo> findAllProductByTypePager(Map<String, Object> params);

  long findAllProductByTypePagerCount(Map<String, Object> params);

  ProductInfo findProductById(Map<String, Object> params);

  ProductInfo findActiveProductInfoById(long productId);

  ProductInfo findPaidOrderByPlatId(String platId);

  ArrayList<ProductInfo> findAllProductsPager(Map<String, Object> params);

  long findAllProductsPagerCount(Map<String, Object> params);

  ProductInfo findProductInfoById(long productId);

  long insertProduct(ProductInfo productInfo);

  int updateProduct(ProductInfo productInfo);

  com.loto.insurance.mis.web.entity.service.ProductInfo findServiceProductInfoById(
	  long productId);

  List<com.loto.insurance.mis.web.entity.service.ProductInfo> findAllActiveServiceProductInfo();
}
